import request from '@/utils/request'

// 查询pc_帖子关联标签列表
export function listArticletag(query) {
  return request({
    url: '/forum/articletag/list',
    method: 'get',
    params: query
  })
}

// 查询pc_帖子关联标签详细
export function getArticletag(id) {
  return request({
    url: '/forum/articletag/' + id,
    method: 'get'
  })
}

// 新增pc_帖子关联标签
export function addArticletag(data) {
  return request({
    url: '/forum/articletag',
    method: 'post',
    data: data
  })
}

// 修改pc_帖子关联标签
export function updateArticletag(data) {
  return request({
    url: '/forum/articletag',
    method: 'put',
    data: data
  })
}

// 删除pc_帖子关联标签
export function delArticletag(id) {
  return request({
    url: '/forum/articletag/' + id,
    method: 'delete'
  })
}
